//
//  EXDataManager.m
//  SmallEasyLife
//
//  Created by qianfeng on 15/10/25.
//  Copyright © 2015年 GXK. All rights reserved.
//

#import "EXDataManager.h"
#import "Event.h"

@implementation EXDataManager

+ (id)exDataManager
{
    return [[self alloc] init];
}

+ (NSArray *)analysisEXHead:(NSArray *)headArray
{
    NSMutableArray * headMArray = [[NSMutableArray alloc] initWithCapacity:headArray.count];
    
    for (NSDictionary * eventDic  in headArray) {
        Event * eventModel = [Event eventWithDictionary:eventDic];
        [headMArray addObject:eventModel];
    }
    return headMArray;
}

+ (NSArray *)analysisEXList:(NSArray *)listArray
{
    NSMutableArray * listMArray = [[NSMutableArray alloc] initWithCapacity:listArray.count];
    
    for (NSDictionary * eventDic  in listArray) {
        Event * eventModel = [Event eventWithDictionary:eventDic];
        [listMArray addObject:eventModel];
    }
    return listMArray;
}
@end
